-- GENERATED SPELL FOR [Naxxramas Cultist] --


function spell0_15980(pUnit, Event) --@Shadow Burst,n/a--
pUnit:FullCastSpellOnTarget(53850,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15980', 583, 1)
end

function spell1_15980(pUnit, Event) --@Shadow Burst,n/a--
pUnit:FullCastSpellOnTarget(53851,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15980', 678, 1)
end

function Sorts_15980(pUnit, Event)
local choix_sorts_15980 = math.random(0, 1)
if choix_sorts_15980 == 0 then
pUnit:RegisterEvent('spell0_15980', 1, 1)
end
if choix_sorts_15980 == 1 then
pUnit:RegisterEvent('spell1_15980', 1, 1)
end
end

function mob15980_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15980', math.random(1500, 3000), 1)
end

function mob15980_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15980_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15980_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15980, 1, 'mob15980_Action')
RegisterUnitEvent(15980, 2, 'mob15980_Leave')
RegisterUnitEvent(15980, 3, 'mob15980_Kill')
RegisterUnitEvent(15980, 4, 'mob15980_Die')
